package enum_package;

class MyTrouser
{
    enum TrouserSize{L, M, XL};
    private TrouserSize myTrouser;
    
    public void setTrouserSize(TrouserSize l)
    {
        this.myTrouser = l;
    }
    public TrouserSize getTrouserSize()
    {
        return myTrouser;
    }
}

public class InternalEnum
{
    public static void main(String[] args)
    {
        MyTrouser x = new MyTrouser();
        MyTrouser.TrouserSize l = MyTrouser.TrouserSize.L;
        
        x.setTrouserSize(l);
        System.out.println(x.getTrouserSize());
        
        l = MyTrouser.TrouserSize.M;
        x.setTrouserSize(l);
        System.out.println(x.getTrouserSize());
    }

}
